package com.bank.basic.controller;

import com.bank.basic.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;

/**
 * @author Cejay1314
 * @version 1.0
 * @create 2023/4/5 14:09
 */
@RestController
@RequestMapping(value = "/basic/file")
public class FileController {
    @Autowired
    FileService fileService;
    @GetMapping("/download")
    void download(@RequestParam Long sourceId, HttpServletResponse httpServletResponse){
        fileService.download(sourceId,httpServletResponse);
    }
}
